<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <title>JSP Page</title>
         <link rel="stylesheet" type="text/css" href="../css/style1.css">
    </head>
     <body >
      <%String username=(String)session.getAttribute("uname");%>
      <% if(null!=username&&!"".equals(username)){%>
	        <p><%=username %>,欢迎你！<a href="../logout.jsp">退出</a></p>
	        <div id="menu">
	           <ul>学生信息管理
	            <li><a href="lookStudent.jsp" target="main">学生信息查询</a></li>
	        </ul>
	        <ul>课程管理
	            <li><a href="lookCourse.jsp" target="main">课程信息查询</a></li>
	        </ul>
	        <ul>成绩管理
	            <li><a href="lookScore.jsp" target="main">成绩信息查询</a></li>
	        </ul>
	        </div>
         <% }else{%>
    	<script type="text/javascript">
    		alert("请先登录!");
    		window.parent.location.href="../index.jsp";
    	</script>
    <%} %>
    </body>
</html>
